import request  from '@/utils/request.js'
export function listCategoryBrand(query){
    return request({
            url: `/product/categoryBrand/list`,
            params:query,
            method:'GET'
        }
    )

}
export function saveCategoryBrand(brand){
    return request({
            url: `/product/categoryBrand/save`,
            params:brand,
            method:'PUT'
        }
    )}
export function updateCategoryBrand(brand){
    return request({
            url: `/product/categoryBrand/update`,
            data:brand,
            method:'PUT'
        }
    )}
export function getCategoryBrandDetails(id){
    return request({
            url: `/product/categoryBrand/${id}`,
            method:'GET'
        }
    )}
export function deleteCategoryBrand(ids){
    return request({
            url: `/product/categoryBrand/${ids}`,
            method:'DELETE'
        }
    )}